﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using Config;
using Intorise.Framework;

namespace Intorise.Common
{
    public class FormTools
    {
        private static Security security = new Security();

        public static void Sleep(int milliseconds)
        {
            DateTime now = DateTime.Now;
            while ((DateTime.Now - now).TotalMilliseconds < milliseconds)
            {
                Thread.Sleep(10);
                Application.DoEvents();
            }
        }
    }
}
